package com.example.badyloans.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
    * 登录日志表
    */
@ApiModel(value="com-example-badyloans-pojo-TLoginLog")
public class TLoginLog implements Serializable {
    /**
    * id
    */
    @ApiModelProperty(value="id")
    private Long id;

    /**
    * 客户端ip地址
    */
    @ApiModelProperty(value="客户端ip地址")
    private String ip;

    /**
    * 登录时间
    */
    @ApiModelProperty(value="登录时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime loginTime;

    /**
    * 登录用户名
    */
    @ApiModelProperty(value="登录用户名")
    private String username;

    /**
    * 账户类型(1:前台用户, 2:运营人员)
    */
    @ApiModelProperty(value="账户类型(1:前台用户, 2:运营人员)")
    private Integer accountType;

    /**
    * 登录结果(1:成功，0:失败)
    */
    @ApiModelProperty(value="登录结果(1:成功，0:失败)")
    private Integer loginResult;

    /**
    * 创建时间
    */
    @ApiModelProperty(value="创建时间")
    private LocalDateTime createTime;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public LocalDateTime getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(LocalDateTime loginTime) {
        this.loginTime = loginTime;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getAccountType() {
        return accountType;
    }

    public void setAccountType(Integer accountType) {
        this.accountType = accountType;
    }

    public Integer getLoginResult() {
        return loginResult;
    }

    public void setLoginResult(Integer loginResult) {
        this.loginResult = loginResult;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", ip=").append(ip);
        sb.append(", loginTime=").append(loginTime);
        sb.append(", username=").append(username);
        sb.append(", accountType=").append(accountType);
        sb.append(", loginResult=").append(loginResult);
        sb.append(", createTime=").append(createTime);
        sb.append("]");
        return sb.toString();
    }
}